package com.gaogzhen.utils;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class JwtToken {
    /**
     * access_token
     */
    @JsonProperty("access_token")
    private String accessToken;
    /**
     * token 类型
     */
    @JsonProperty("token_type")
    private String tokenType;
    /**
     * 刷新token
     */
    @JsonProperty("refresh_token")
    private String refreshToken;
    /**
     * 过期时间ms
     */
    @JsonProperty("expires_in")
    private Long expiresIn;
    /**
     * 作用范围
     */
    @JsonProperty("scope")
    private String scope;
    /**
     * 颁发凭证
     */
    @JsonProperty("jti")
    private String jti;
}
